$(function() {
	$('.userName').text(getCookie('userName'));
	var day = new Date();
	$('.nowDate').text(day.toLocaleDateString());
	$('.week').text('星期'+'日一二三四五六'.charAt(day.getDay()));
	$('.logout').click(function() {
		delCookie('id');
		delCookie('name');
		delCookie('userName');
		delCookie('lastLogin');
		delCookie('token');
		window.location.href='login.htm';
	})
})